﻿<UserControl x:Class="Wulong.Phone.Dianping.Views.ReviewDialogView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
             mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ScrollViewer Background="Black" 
                      Grid.Row="2"
                      VerticalAlignment="Bottom">
            <TextBlock Text="{Binding FullReview}"
                       TextWrapping="Wrap"
                       Style="{StaticResource PhoneTextNormalStyle}"
                       Width="450"
                       Foreground="White"
                       /> 
        </ScrollViewer>
        <Grid Grid.Row="2"
              Visibility="{Binding IsBusy, 
                            Converter={StaticResource BooleanToVisibilityConverter}}">
            <TextBlock 
                Text="{Binding Path=Appi18n.Loading, Source={StaticResource ls}}" 
                Style="{StaticResource LoadingStyle}"/>
            <toolkit:PerformanceProgressBar 
                IsIndeterminate="{Binding IsBusy}"
                VerticalAlignment="Center" 
                 />
        </Grid>
    </Grid>
</UserControl>
